﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYQQX.SP
{
    public class Fqx_my : ISp
    {
        public override string Name => "风晴雪·绵羊";

        public override string Desc => @"技能效果一：若焦炭在公共卡池中，则下回合一定出现焦炭
技能效果二：厨房功夫的分数增加20分";

        public override int SpScore => 4;

        public override int GetExtraScore(CardGroup group)
        {
            if (group.Group.Any(t => t.Name == "厨房功夫"))
                return 20;

            return base.GetExtraScore(group);
        }

        public override void Got(CardGroup MyGroup, CardGroup OtGroup)
        {
            SetNextSend((cards) =>
            {
                return cards.FirstOrDefault(t => t.Name == "焦炭");
            });
        }
    }
}
